package com.jackiechan.hello.day02;

import java.util.Scanner;

/**
 * 将字符串"123abc456def789ghi"中的英文部分替换为"#char#"
 * @author Xiloer
 *
 */
public class Test04 {
    public static void main(String[] args) {
        System.out.print("请输入字符串:");
        String string = new Scanner(System.in).next();
        show(string);
    }

    private static void show(String string) {
        string = string.replaceAll("[A-Za-z]","#char#");
        System.out.println(string);
    }
}
